package dto

import "admin-system-go/model"

type UserBaseDTO struct {
	Uid      uint   `json:"uid,string" form:"uid"`
	Username string `json:"username,omitempty" form:"username"`
	Name     string `json:"name,omitempty" form:"name"`
	Mobile   string `json:"mobile,omitempty" form:"mobile"`
	Email    string `json:"email,omitempty" form:"email"`
	IdCard   string `json:"idCard,omitempty" form:"idCard"`
	State    int8   `json:"state" form:"state"`
}

type LoginDTO struct {
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
}

type UserAddDTO struct {
	Password string `json:"password" form:"password"`
	UserBaseDTO
}

type ChangPasswordDTO struct {
	Uid         uint   `json:"uid,string" form:"uid"`
	Password    string `json:"password" form:"password"`
	OldPassword string `json:"oldPassword" form:"oldPassword"`
}

type UserUpdateDTO struct {
	Uid      uint   `json:"uid,string" form:"uid"`
	Password string `json:"password" form:"password"`
	UserBaseDTO
}

type UserDelDTO struct {
	Ids []string `json:"ids" form:"ids"`
}

type UserQueryDTO struct {
	UserBaseDTO
	model.Model
	model.PageQuery
}
